extends ../base/admin_base
append content
  section(class='describe equipment')
    div
      button(class='add pull-right btn btn-default',
             data-toggle='modal',data-target='#info_modal')
        span(class='glyphicon glyphicon-plus')
          添加

  div(class='modal fade',id='info_modal',tabindex='-1',
      aria-labelledby='info_modal_label',aria-hidden='true')
    div.modal-dialog
      form(class='modal-content',enctype='multipart/form-data',method='POST')
        div.modal-header
          button(type='button',class='close',data-dismiss='modal',
                 aria-hidden='true') &times;
          h4(class='modal-title',id='info_modal_label')
            表单
        div.modal-body
          input(type='hidden',name='form_type',value='add')
          input(type='hidden',name='id')
          input(type='hidden',name='role',value='0')

          div.form-group
            label(for='name') 器材名
            input(type='text',name='name',class='form-control',placeholder='器材名')
          div.form-group
            label(for='') 图片
            input(id='imgFile',type='file',name='imgFile')
            p.help-block 上传图片
          div.form-group
            label 详细介绍
            textarea(class='form-control',rows='8',name='introduce')

        div.modal-footer
          button(type='submit',class='btn btn-default')
            | 提交
          button(type='button',class='btn btn-default',data-dismiss='modal')
            | 关闭

  div(id='page-selection',class='col-md-6 col-md-offset-3')
